(()=>{"use strict";const n=function(n,e){"string"==typeof n&&void 0!==window.newrelic&&"function"==typeof window.newrelic.addPageAction&&(e=e||{},newrelic.addPageAction(n,e))};function e(n){try{let e=document.querySelectorAll(n),o=0;return e.forEach((n=>{if(t(n)){let e=n,a=!0;for(;e;){if(!t(e)){a=!1;break}e=e.parentElement}a&&o++}})),o}catch(n){return 0}}function o(e,o=!1){n("searchboxIsMount",{locale:window.locale,userAgent:navigator.userAgent,xClient:window.dreckInfoData&&window.dreckInfoData.x_client,url:window.location.href,flow:window.dreckInfoData&&window.dreckInfoData.flow,product:window.dreckInfoData&&window.dreckInfoData.product,channel:window.ShifuConfig&&window.ShifuConfig.channel,country:window.dreckInfoData&&window.dreckInfoData.cc,pageview_id:window.dreckInfoData&&window.dreckInfoData.pageview_id,company_id:window.dreckInfoData&&window.dreckInfoData.company_id,dreck_session_id:window.dreckInfoData&&window.dreckInfoData.dreck_session_id,dreckUpdateDone:window.dreckInfoData&&window.dreckInfoData.updateDone,amountSearchbox:e,isUpdatedSbox:o})}function t(n){try{const e=window.getComputedStyle(n);return!("none"===e.display||"hidden"===e.visibility||"0"===e.opacity||0===n.offsetWidth||0===n.offsetHeight)}catch(n){return!1}}!function(){if(!(window.navigator.userAgent.toLowerCase().indexOf("msie")>0||navigator.userAgent.match(/Trident.*rv\:11\./))){var t=new CustomEvent("DRECK_READY");document.dispatchEvent(t)}location.search.indexOf("disableWrongCountry")>=0&&function(e,o){try{localStorage.setItem(e,o)}catch(e){n("wrongCountryLazyLoadLocalStorage",{error:"Error: local storage in Wrong Country Lazy Load...",locale:window.locale,userAgent:navigator.userAgent,url:window.location.href})}}("dreckWrongCountryExpiration",(new Date).toDateString()),window.addEventListener("load",(()=>{if(window.dreckInfoData&&"home"==window.dreckInfoData.flow){const n=e(".sbox5-layout");o(n),0==n&&document.addEventListener("finishSboxMount",(()=>{o(e(".sbox5-layout"),!0)}))}})),document.addEventListener("readystatechange",(function(e){if("complete"===e.target.readyState&&window&&window.performance&&window.performance.getEntries()){var o=window.performance.getEntries().filter((n=>"script"===n.initiatorType&&/gtm.js/.test(n.name))).map((n=>(n.name.match(/GTM-[A-Za-z0-9]+[&]?/)||[""])[0].replace("&",""))).filter((n=>n.length>0));n("gtmContainers",{locale:window.locale,userAgent:navigator.userAgent,xClient:window.dreckInfoData&&window.dreckInfoData.x_client,gtm:o.join(" - ")})}}))}()})();